package com.foreknow.entity;

public class Blog {
    private Integer id;
    private String title;
    private String content;
    private String introduction;
    private String uploadTime;
    private Integer userId;
    private String category;
    private Integer readingVolume;
    private String blogUsername;
    private Boolean isShown;

    public Blog() {
        super();
    }

    public Blog(String title, String content, String uploadTime, Integer userId, String category) {
        super();
        this.title = title;
        this.content = content;
        this.uploadTime = uploadTime;
        this.userId = userId;
        this.category = category;
    }

    public Blog(Integer id, String title, String content, String uploadTime, Integer userId, String category,
                Integer readingVolume, String introduction) {
        super();
        this.id = id;
        this.title = title;
        this.content = content;
        this.uploadTime = uploadTime;
        this.userId = userId;
        this.category = category;
        this.readingVolume = readingVolume;
        this.introduction = introduction;
    }

    public String getIntroduction() {
        return introduction;
    }

    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }

    public Boolean getIsShown() {
        return isShown;
    }

    public void setIsShown(Boolean isShown) {
        this.isShown = isShown;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getUploadTime() {
        return uploadTime;
    }

    public void setUploadTime(String uploadTime) {
        this.uploadTime = uploadTime;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public Integer getReadingVolume() {
        return readingVolume;
    }

    public void setReadingVolume(Integer readingVolume) {
        this.readingVolume = readingVolume;
    }

    public String getBlogUsername() {
        return blogUsername;
    }

    public void setBlogUsername(String blogUsername) {
        this.blogUsername = blogUsername;
    }

    @Override
    public String toString() {
        return "Blog [id=" + id + ", title=" + title + ", content=" + content + ", uploadTime=" + uploadTime
                + ", userId=" + userId + ", category=" + category + ", readingVolume=" + readingVolume + "]";
    }
}
